package org.thread.test02.homework2;/*
 *@Author: gjh
 *Date: 2025/3/920:29
 *Describe:
 */

import java.io.File;

public class GuardThread extends Thread{
    @Override
    public void run() {
        while (true){
            System.out.println("进度："+String.format("%.1f",Test.test.getDoneByte())+"%");
            try {
                Thread.sleep(2000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }

    }
}
